#include "BlockColor.h"

BlockColor& operator++(BlockColor& color, int){
	int i = static_cast<int>(color);
	color = static_cast<BlockColor>((i+1) % 6); // because we have 6 colors
	return color;
}

BlockColor& operator--(BlockColor& color, int){
	int i = static_cast<int>(color);
	color = static_cast<BlockColor>((i-1) % 6);
	return color;
}